let BASE_URL = "";
let BASE_UP_URL = "";
let APPID = "";
let APP_KEY = "";
let GET_ORGCODE_URL = "";
const TIME_OUT = 30000;

if (process.env.NODE_ENV === "development") {
  // 开发环境
  BASE_URL = "/api";
  BASE_UP_URL = "/up";
  GET_ORGCODE_URL = "http://101.207.142.35:42257/xgk"; // 获取orgcode token
  APPID = "VIsdrbXuqF";
  APP_KEY = "67f1b7e7f0ee4b44bfc0e857da1f8a6a";
} else if (process.env.NODE_ENV === "production") {
  const origin = window.location.origin;
  // 测试环境
  BASE_URL = `${origin}/test/xgk/service/hsteach`; // 接口地址
  BASE_UP_URL = `${origin}/test/`; // 测试环境文件上传地址
  GET_ORGCODE_URL = `${origin}/test/xgk`; // 获取orgcode token
  APPID = "VIsdrbXuqF";
  APP_KEY = "67f1b7e7f0ee4b44bfc0e857da1f8a6a";

  // 正式环境
  // BASE_URL = `${origin}/xgk/service/hsteach`; // 接口地址
  // BASE_UP_URL = `${origin}/`; // 文件上传地址
  // GET_ORGCODE_URL = `${origin}/xgk`; // 获取orgcode token
  // APPID = "ItXq2DRRgj";
  // APP_KEY = "d22e2ea97a41425896944fdfeeabcda2";
} else {
  BASE_URL = "";
}
export { BASE_URL, TIME_OUT, BASE_UP_URL, APPID, APP_KEY, GET_ORGCODE_URL };
